package com.jason.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.jason.base.BaseModel;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.util.List;

/**
 * <p>
 * ${table.comment}
 * </p>
 *
 * @author sj
 * @since 2018-04-25
 */
@ApiModel("权限模块")
@TableName("sys_permission")
@Data
public class SysPermission extends BaseModel {

    @TableField(exist = false)
    private String username;

    @TableField(exist = false)
    private String roleName;

    @TableField("code")
    private String code;

    @TableField("permission_name")
    private String permissionName;

    @TableField("description")
    private String description;

    @TableField("url")
    private String url;

    @TableField("method")
    private String method;

    @TableField("pid")
    private Long pid;

    @TableField(exist = false)
    private List<SysPermission> children;

}
